<template>
	<!--产品数据-->
	<view class="com-content">
		<block v-for="(item0,iiii) in obj" :key="iiii">
			<!--产品图片数据-->
			<view class="com-top2" v-show="item0.delete=== 2 && is_edit">
				<image class="com-body-img" :src="item0.url || item0.img_url" mode="aspectFill"
					@click.stop="look(item0.url || item0.img_url)"></image>
				<!--替换图片-->
				<image class="sel-img1" :src="$mAssetsPath.icon_replace"
					@click.stop="replace_img(iiii,item0.id,'tuce')"></image>
				<!--删除图片-->
				<image class="sel-img2" :src="$mAssetsPath.icon_sc4" @click.stop="delete_img(iiii,item0.id)"></image>
				<view class="com-body-box" v-if="is_edit">
					<!-- <view class="box-name">{{item0.image_name}}</view> -->
					<input class="box-name" type="text" v-model="item0.image_name" placeholder="请输入名称"
						placeholder-style="color:#bbb;font-size:26rpx" />
					<view class="box-txt" v-if="pageType==='pop' && is_edit">
						<block v-for="(item,iii) in item0.attr_data" :key="iii">
							<view class="box-txt-li">{{item}}</view>
						</block>
					</view>
					<view class="box-remark items-center">
						<view class="flex remark-test-l">
							<view class="flex items-center">备注：</view>
							<view v-if="!item0.isPl">{{item0.mark}}</view>
							<textarea v-if="item0.isPl" :focus="true" @blur="closePl(item0)" v-model="item0.mark"
								:auto-height="true" confirm-type="done" :maxlength="999"></textarea>
						</view>
						<image v-if="!item0.isPl" @click.stop="edit_remark(iiii,item0.id,item0)" class="box-remark-r"
							:src="$mAssetsPath.icon_bianji3">
						</image>
						<view v-if="item0.isPl" class="submit-box">
							<button @click.stop="closePl(item0)" class="submit-btn">保存</button>
						</view>
					</view>

				</view>
			</view>
			<view class="com-top2" v-show="item0.delete=== 2 && !is_edit && item0.datalist.length>0">
				<image class="com-body-img" :src="item0.url || item0.img_url" mode="aspectFill"
					@click.stop="look(item0.url || item0.img_url)"></image>
				<view class="com-body-box">
					<view class="box-name2">{{item0.image_name || item0.img_name}}</view>
					<view class="box-txt" v-if="pageType==='pop'">
						<block v-for="(item,iii) in item0.attr_data" :key="iii">
							<view class="box-txt-li">{{item}}</view>
						</block>
					</view>
					<view class="box-remark">
						<view class="box-remark-l">备注：{{item0.mark}}</view>
					</view>
				</view>
			</view>
			<view class="com-body" v-show="item0.delete=== 2">
				<view v-for="(item,index) in item0.datalist">
					<view class="com-body-li" v-if="pageType==='pop' || pageType==='prop'">
						<!--左滑盒子-左滑删除-->
						<w-slide-left :delBtnWidth="delBtnWidth" :data_transit="{index:index,item:item}"
							@delItem="delItem3(iiii,index)" @cenItem="cenItem">
							<view v-show="item.delete === 2">
								<view class="li-title" @click.stop="replaceFormat(item, index, index, 0, '1', iiii)" :key="index">
									<text class="li-title-t">{{item.name}}</text>
								</view>
							</view>
						</w-slide-left>

						<!--产品规格-->
						<view v-for="(ite,ind) in item.data" :key="ind" v-if="item.data.length>0 && item.delete === 2">
							<!--pop二级规格-->
							<template v-if="pageType==='pop' && ite.count>0">
								<view class="li-box">
									<view
										@click.stop="replaceFormat(ite, index, ind, 0, '2', iiii, item.product_coding_id)"
										class="li-box-o">{{ite.name}}</view>
								</view>
								<view v-for="(it,i) in ite.data" :key="i">
									<!--左滑盒子-左滑删除-->
									<w-slide-left :delBtnWidth="delBtnWidth" :data_transit="{index:i,item:it}"
										@delItem="delItem2(iiii,index,ind,i)" @cenItem="cenItem">
										<view class="li-box-li" v-show="it.delete === 2">
											<view
												@click.stop="replaceFormat(it, index, ind, i, '3', iiii, ite.product_coding_id)"
												class="li-box-o">{{it.name}}</view>
											<view class="li-box-t">
												<template v-if="it.has_update">
													<input class="input-row-w" type="number" v-model="it.width"
														:style="{border:it.has_update?'1rpx solid #eee':'none'}"
														placeholder="长度(cm)" :disabled="it.has_update?false:true"
														placeholder-style="color:#ddd;font-size:20rpx;"></input>
													x
													<input class="input-row-w" type="number" v-model="it.height"
														:style="{border:it.has_update?'1rpx solid #eee':'none'}"
														placeholder="长度(cm)" :disabled="it.has_update?false:true"
														placeholder-style="color:#ddd;font-size:20rpx"></input>
												</template>
												<template v-else>
													<view>{{it.width}} cm x {{it.height}} cm</view>
												</template>
											</view>
											<view class="li-box-th">
												<image class="icon-jj" v-if="it.number>0"
													:src="$mAssetsPath.icon_jianhao"
													@click.stop="rednum2(iiii,index,ind,i)"></image>
												<view class="li-box-th-num" v-if="it.number>0">{{it.number}}</view>
												<image class="icon-jj" :src="$mAssetsPath.icon_jiahao"
													@click.stop="addnum2(iiii,index,ind,i)"></image>
											</view>
										</view>
									</w-slide-left>
								</view>
							</template>
							<template v-else-if="pageType==='pop'">
								<!--左滑盒子-左滑删除{index:ind,item:ite}-->
								<w-slide-left :delBtnWidth="delBtnWidth" :data_transit="{index:ind,item:ite}"
									@delItem="delItem(iiii,index,ind)" @cenItem="cenItem">
									<view class="li-box-li2" v-show="ite.delete === 2">
										<view class="li-box-o"
											  @click.stop="replaceFormat(ite, index, ind, 0, '2', iiii, item.product_coding_id)"
										>{{ite.name}}</view>
										<view class="li-box-t">
											<template v-if="ite.has_update">
												<input class="input-row-w" type="number" v-model="ite.width"
													:style="{border:ite.has_update?'1rpx solid #eee':'none'}"
													placeholder="长度(cm)" :disabled="ite.has_update?false:true"
													placeholder-style="color:#ddd;font-size:20rpx;"></input>
												x
												<input class="input-row-w" type="number" v-model="ite.height"
													:style="{border:ite.has_update?'1rpx solid #eee':'none'}"
													placeholder="长度(cm)" :disabled="ite.has_update?false:true"
													placeholder-style="color:#ddd;font-size:20rpx"></input>
											</template>
											<template v-else>
												<view>{{ite.width}} cm x {{ite.height}} cm</view>
											</template>
										</view>
										<view class="li-box-th">
											<image class="icon-jj" v-if="ite.number>0" :src="$mAssetsPath.icon_jianhao"
												@click.stop="rednum1(iiii,index,ind)">
											</image>
											<view class="li-box-th-num" v-if="ite.number>0">{{ite.number}}</view>
											<image class="icon-jj" :src="$mAssetsPath.icon_jiahao"
												@click.stop="addnum1(iiii,index,ind)">
											</image>
										</view>
									</view>
								</w-slide-left>
							</template>
							<template v-else-if="pageType==='prop'">
								<!--左滑盒子-左滑删除-->
								<w-slide-left :delBtnWidth="delBtnWidth" :data_transit="{index:ind,item:ite}"
									@delItem="delItem(iiii,index,ind)" @cenItem="cenItem">
									<view class="li-box-li2" v-show="ite.delete === 2">
										<view class="li-box-o">{{ite.name}}</view>
										<view class="li-box-th">
											<image class="icon-jj" v-if="ite.number>0" :src="$mAssetsPath.icon_jianhao"
												@click="rednum1(iiii,index,ind)">
											</image>
											<view class="li-box-th-num" v-if="ite.number>0">{{ite.number}}</view>
											<image class="icon-jj" :src="$mAssetsPath.icon_jiahao"
												@click="addnum1(iiii,index,ind)">
											</image>
										</view>
									</view>
								</w-slide-left>
							</template>
							<!--增加-->
							<image class="li-texture-bot1" v-if="ite.has_next && ite.delete === 2 && is_edit"
								@click.stop="add_pro2(iiii,index,ind,ite.product_coding_id,'3')"
								:src="$mAssetsPath.icon_add_but">
							</image>
						</view>
						<!--增加-->
						<image class="li-texture-bot2" v-if="is_edit && item.delete === 2"
							@click.stop="add_pro(iiii,index,item.product_coding_id,'2')"
							:src="$mAssetsPath.icon_add_but"></image>
						<template v-if="pageType==='pop'">
							<template v-if="item.texture && item.texture.length>0">
								<view class="li-texture">材质：
									<!--@click.stop="sel_mat(iiii,index)"-->
									<block v-for="(li,ii) in unique(item.texture)" :key="ii">
										<view class="li-texture-txt">{{li}}</view>
									</block>
								</view>
							</template>
							<!-- <template v-else-if="is_edit">
								<view class="li-texture2">
									<image class="li-texture-bot"  :src="$mAssetsPath.icon_add_but">
								</view>
							</template> -->
							<template v-else>
								<view class="li-texture3"></view>
							</template>
						</template>

					</view>
				</view>
				<!--增加-->
				<image class="li-texture-bot3" v-if="is_edit" @click.stop="add_pro(iiii,'0','0','1')"
					:src="$mAssetsPath.icon_add_but2"></image>
				<view class="com-body-count" v-if="item0.count_money">
					<view class="count-name">供应商：<text class="count-name-txt">{{item0.sup_name}}</text></view>
					<view class="count-money">金额：¥{{item0.count_money}}</view>
				</view>
			</view>
			<!--定制-->
			<view class="com-body">
				<view class="com-body-li" v-if="pageType==='pop' && item0.datalist.length>0 && !is_edit">
					<!--名称-->
					<view class="li-title2">
						<text class="li-title-t">定制</text>
					</view>
					<view v-for="(aa,bb) in item0.textures" :key="bb" v-if="item0.textures.length>0">
						<!--左滑盒子-左滑删除{index:ind,item:ite}-->
						<w-slide-left :delBtnWidth="delBtnWidth1" :data_transit="{}" @delItem="delItem0(iiii,bb)"
							@cenItem="cenItem">
							<view class="li-box-li2">
								<view class="li-box-o">{{aa.name || aa.texture_name}}</view>
								<view class="li-box-t">
									<input class="input-row-w" type="number" v-model="aa.width"
										style="border:1rpx solid #eee" placeholder="长度(cm)"
										placeholder-style="color:#ddd;font-size:20rpx;"></input>
									x
									<input class="input-row-w" type="number" v-model="aa.height"
										style="border:1rpx solid #eee" placeholder="长度(cm)"
										placeholder-style="color:#ddd;font-size:20rpx"></input>
								</view>
								<view class="li-box-th">
									<image class="icon-jj" v-if="aa.number>0" :src="$mAssetsPath.icon_jianhao"
										@click.stop="rednum0(iiii,bb)">
									</image>
									<view class="li-box-th-num" v-if="aa.number>0">{{aa.number}}</view>
									<image class="icon-jj" :src="$mAssetsPath.icon_jiahao"
										@click.stop="addnum0(iiii,bb)">
									</image>
								</view>
							</view>
						</w-slide-left>
					</view>
					<!--增加-->
					<image class="li-texture-bot4" @click.stop="sel_mats(iiii)" :src="$mAssetsPath.icon_add_but">
					</image>
				</view>
			</view>

		</block>

		<w-popup :show="showtip" :type="type1" @change="change1">
			<view class="w-tip">
				<view class="w-tit">设置定制</view>
				<scroll-view class="w-con" :scroll-top="scrollTop2" scroll-y="true">
					<view class="w-con-t">材质：</view>
					<view class="w-con-c">
						<block v-for="(item,index) in list" :key="index">
							<view class="w-con-c-li" @click.stop="choose(index)"
								:style="{background:item.statu?'#CBE6FF':'#f5f5f5',color:item.statu?'#198FFF':'#999'}">
								{{item.name}}
							</view>
						</block>
					</view>
				</scroll-view>
				<view class="w-but">
					<view class="w-but-txt" @click.stop="cancel('tip')">取消</view>
					<view class="w-but-txt" @click.stop="confirm">确认</view>
				</view>
			</view>
		</w-popup>
		<!-- 下拉框 -->
		<u-popup class="popup-content" mode='bottom' border-radius="16" v-model="show">
			<view class="header">
				<view class="title">{{poptype==='1'?'设置一级关联：':poptype==='2'?'设置二级关联：':'设置三级关联'}}</view>
			</view>
			<scroll-view class="body" scroll-y="true">
				<block v-for="(item,index) in list2" :key="index">
					<view class="box" @click.stop="checks(item.id,item.checked)">
						<view class="box-name" :style="{color:item.checked?'#198FFF':'#999'}">{{item.name}}</view>
						<view class="box-icon">
							<image class="box-icon-dagou" v-if="item.checked" :src="$mAssetsPath.icon_dagou"></image>
						</view>
					</view>
				</block>
			</scroll-view>
			<view @tap="cancel" hover-class="none" class="footer">取消</view>
		</u-popup>
	</view>
</template>

<script>
	import wPopup from '@/components/w-popup/w-popup2.vue';
	import wSlideLeft from '@/components/w-operate/w-slideLeft.vue';
	import {
		unique
	} from '@/common/util.js';
	export default {
		name: "com-top",
		components: {
			wPopup,
			wSlideLeft
		},
		props: {
			//左滑宽度
			delBtnWidth: {
				type: Number,
				default: 100
			},
			//下拉框数据
			list2: {
				type: Array,
				default () {
					return []
				}
			},
			sel_img_index: {
				type: Number,
				default: 0
			},
			obj: {
				type: Array,
				default () {
					return []
				}
			},
			pageType: {
				type: String,
				default: 'pop'
			},
			list: {
				type: Array,
				default () {
					return []
				}
			},
			is_edit: {
				type: Boolean,
				default: true
			}
		},
		data() {
			return {
				showtip: false, //是否显示弹窗1
				content1: '顶部弹 popup',
				type1: '', //弹窗显示方式
				scrollTop2: 0,
				sel_ind: 0,
				delBtnWidth1: 100,

				show: false, //弹窗
				poptype: 1, //弹窗类型
				isReplace: false

			}
		},
		created() {

		},
		mounted() {

		},
		methods: {
			unique,
			replaceFormat(val, oneIndex, twoIndex, threeIndex, type, iiii, id) {
				console.log(123)
				this.poptype = type
				this.isReplace = true
				this.show = true;
				let indexs = {
					oneIndex,
					twoIndex,
					threeIndex
				}
				this.$emit('replaceFormat', val, indexs, type, iiii, id)
			},
			//弹窗-下拉框选择
			checks(id, checked) {
				this.show = false;
				this.$emit('checks', id, checked, this.isReplace)
			},
			cenItem(e) {
				this.$emit('cenItem', e);
			},
			delItem0(iiii, index) {
				this.$emit('delItem0', iiii, index);
			},
			delItem(iiii, index, ind) {
				this.$emit('delItem', iiii, index, ind);
			},
			delItem2(iiii, index, ind, i) {
				this.$emit('delItem2', iiii, index, ind, i);
			},
			delItem3(iiii, index) {
				this.$emit('delItem3', iiii, index);
			},
			//替换图片
			replace_img(iiii, id, imgType) {
				this.$emit('replace_img', iiii, id, imgType);
			},
			//删除图片
			delete_img(iiii, id) {
				this.$emit('delete_img', iiii, id);
			},
			//编辑备注
			edit_remark(iiii, id, item) {
				this.plMark = item.mark
				item.isPl = true
				this.$forceUpdate()
				this.$emit('edit_remark', iiii, id, item);
			},
			choose(index) {
				this.$emit('choose', index);
			},
			confirm() {
				let list = []
				if (this.list && this.list.length > 0) {
					this.list.forEach((item, ind) => {
						if (item.statu) {
							list.push(item.name)
						}
					})
				}
				this.$emit('confirm', list, this.sel_ind);
				this.showtip = false;
			},
			add_pro(iiii, index, top_id, poptype) {
				this.poptype = poptype
				this.show = true;
				this.isReplace = false
				this.$emit('add_pro', iiii, index, top_id, poptype)
			},
			add_pro2(iiii, index, ind, top_id, poptype) {
				this.poptype = poptype
				this.show = true;
				this.isReplace = false
				this.$emit('add_pro2', iiii, index, ind, top_id, poptype)
			},
			//选择定制材质
			sel_mat(index) {
				this.$emit('sel_mat');
				this.sel_ind = index;
				if (this.is_edit) {
					this.content1 = 'center'
					this.type1 = 'center';
					this.showtip = true;
				}
			},
			look(url) {
				var imgArr = []
				imgArr.push(url);
				//预览图片
				uni.previewImage({
					urls: imgArr,
					current: 0
				});
			},
			//选择定制材质
			sel_mat(index) {
				this.$emit('sel_mat');
				this.sel_ind = index;
				if (this.is_edit) {
					this.content1 = 'center'
					this.type1 = 'center';
					this.showtip = true;
				}
			},
			//选择定制材质
			sel_mats(index) {
				this.$emit('sel_mats', index);
				this.sel_ind = index;
				this.content1 = 'center'
				this.type1 = 'center';
				this.showtip = true;
			},
			//一级减少
			rednum0(iiii, index) {
				this.$emit('rednum0', iiii, index)
			},
			//一级增加
			addnum0(iiii, index) {
				this.$emit('addnum0', iiii, index)
			},
			//一级减少
			rednum1(iiii, index, index2) {
				this.$emit('rednum1', iiii, index, index2)
			},
			//一级增加
			addnum1(iiii, index, index2) {
				this.$emit('addnum1', iiii, index, index2)
			},
			//二级减少
			rednum2(iiii, index, index2, index3) {
				this.$emit('rednum2', iiii, index, index2, index3)
			},
			//二级增加
			addnum2(iiii, index, index2, index3) {
				this.$emit('addnum2', iiii, index, index2, index3)
			},
			change1(e) {
				if (!e.show) {
					this.showtip = false;
				}
			},
			//取消
			cancel(type) {
				this['show' + type] = false;
				this.show = false;
			},

			// 关闭评论框 在失去焦点或隐藏键盘是关闭
			closePl(v) {
				v.isPl = false
				this.$forceUpdate()
			}
		}
	}
</script>

<style lang="scss" scoped>
	.submit-box {
		width: 20%;
		height: 80rpx;
		text-align: center;
		line-height: 120rpx;
		display: flex;
		align-items: center;

		.submit-btn {
			width: 80%;
			height: 60rpx !important;
			background-color: #198EFF;
			color: white;
			border-radius: 50rpx;
			line-height: 60rpx !important;
			font-size: 24rpx;
		}
	}

	// 评论
	textarea {
		max-height: 150rpx !important;
		overflow-y: auto;
		background-color: #cccccc44;
		padding: 20rpx;
		border-radius: 20rpx;
		font-size: 30rpx;
		color: black !important;
	}

	uni-textarea {
		height: auto !important;
		color: black !important;
	}

	.submit-box {
		width: 20%;
		height: 80rpx;
		text-align: center;
		line-height: 120rpx;
		display: flex;
		align-items: center;

		.submit-btn {
			width: 80%;
			height: 60rpx !important;
			background-color: #198EFF;
			color: white;
			border-radius: 50rpx;
			line-height: 60rpx !important;
			font-size: 24rpx;
		}
	}

	/* 下拉窗口 */
	.popup-content {
		position: fixed;
		display: flex;
		flex-direction: column;

		.header {
			display: flex;
			border-bottom: 1rpx solid #eee;
			height: 100rpx;

			.title {
				line-height: 100rpx;
				padding: 0 30rpx;
				text-align: left;
				font-size: 32rpx;
				color: #333;
				font-weight: bold;
			}
		}

		.body {
			display: flex;
			max-height: 700rpx;
			flex-direction: column;

			.box {
				display: flex;
				justify-content: center;
				align-items: center;
				height: 100rpx;
				border-bottom: 1rpx solid #eee;
				font-size: 36rpx;

				.box-name {
					margin-right: 30rpx;
				}

				.box-icon {
					width: 34rpx;

					.box-icon-dagou {
						width: 34rpx;
						height: 28rpx;
					}
				}
			}
		}

		.footer {
			height: 100rpx;
			color: $font-color-r;
			font-size: 36rpx;
			text-align: center;
			line-height: 88rpx;
			background: $uni-bg-color;
			margin-right: 50rpx;
		}
	}

	.li-texture-bot {
		width: 84rpx;
		height: 52rpx;
	}

	.li-texture-bot1 {
		width: 84rpx;
		height: 52rpx;
		margin-left: 30rpx;
		margin-bottom: 40rpx;
	}

	.li-texture-bot2 {
		width: 84rpx;
		height: 52rpx;
		margin-bottom: 40rpx;
	}

	.li-texture-bot3 {
		width: 84rpx;
		height: 52rpx;
		margin-bottom: 40rpx;
	}

	.li-texture-bot4 {
		width: 84rpx;
		height: 52rpx;
		margin-bottom: 40rpx;
	}

	/* 提示窗口 */
	.w-tip {
		/* #ifndef APP-NVUE */
		display: flex;
		flex-direction: column;
		/* #endif */
		width: 80vw;
		min-height: 300rpx;
		border-radius: 10rpx;
		background-color: #fff;
		box-shadow: 0rpx 7rpx 7rpx 0rpx rgba(0, 0, 0, 0.1);
		margin: 30rpx auto 0;

		.w-tit {
			font-size: 36rpx;
			font-weight: bold;
			color: $font-color-3;
			line-height: 90rpx;
			height: 90rpx;
			text-align: center;
			border-bottom: 1rpx solid #f5f5f5;
		}

		.w-but {
			display: flex;
			font-size: 32rpx;
			font-weight: 400;
			color: $font-color-b3;
			height: 84rpx;
			line-height: 84rpx;

			.w-but-txt {
				flex: 1;
				text-align: center;
				border-right: 1rpx solid #f5f5f5;
			}

			.w-but-txt:last-of-type {
				border-right: none;
			}
		}

		.w-con {
			display: flex;
			flex-direction: column;
			height: 400rpx;
			font-size: 32rpx;
			font-weight: 400;
			color: $font-color-3;
			border-bottom: 1rpx solid #f5f5f5;

			.w-con-t {
				font-size: 28rpx;
				font-weight: 400;
				color: $font-color-3;
				padding: 10rpx 30rpx;
			}

			.w-con-c {
				display: flex;
				flex-wrap: wrap;
				padding: 10rpx 30rpx;

				.w-con-c-li {
					height: 52rpx;
					line-height: 52rpx;
					padding: 0 20rpx;
					margin: 0 20rpx 20rpx 0;
					border-radius: 6rpx;
					font-size: 28rpx;
					font-weight: 400;
				}
			}
		}
	}

	.com-content {
		overflow: auto;
		display: flex;
		flex-direction: column;
		width: 100%;
		height: 100%;
		//padding: 30rpx 30rpx 0 30rpx;
		padding: 0 30rpx;

		.com-top2 {
			padding-top: 30rpx;
			display: flex;
			flex-direction: column;
			margin-bottom: 30rpx;
			position: relative;

			.sel-img1 {
				position: absolute;
				right: 120rpx;
				top: 30rpx;
				width: 60rpx;
				height: 60rpx;
			}

			.sel-img2 {
				position: absolute;
				right: 30rpx;
				top: 30rpx;
				width: 60rpx;
				height: 60rpx;
			}

			.com-body-img {
				width: 100%;
				height: 388rpx;
				border-radius: 10rpx;
				margin-bottom: 30rpx;
				overflow: hidden;
			}

			.com-body-box {
				display: flex;
				flex-direction: column;
				border-bottom: 1rpx solid #f5f5f5;

				.box-name {
					font-size: 32rpx;
					font-weight: 600;
					color: $font-color-3;
					margin-bottom: 26rpx;
					border: 1rpx solid #f5f5f5;
					height: 80rpx;
					padding-left: 20rpx;
				}

				.box-name2 {
					font-size: 32rpx;
					font-weight: 600;
					color: $font-color-3;
					margin-bottom: 26rpx;
					height: 60rpx;
					line-height: 60rpx;
				}

				.box-txt {
					display: flex;
					margin-bottom: 26rpx;

					.box-txt-li {
						height: 38rpx;
						line-height: 38rpx;
						font-size: 24rpx;
						font-weight: 400;
						color: $font-color-9;
						padding: 0 20rpx;
						background: $uni-bg-color-grey;
						border-radius: 4rpx;
						margin-right: 20rpx;
					}
				}

				.box-remark {
					display: flex;
					justify-content: space-between;
					align-items: center;
					padding: 20rpx 0;
					border-top: 1rpx solid #f5f5f5;

					.box-remark-l {
						width: calc(100% - 60rpx);
						font-size: 28rpx;
						font-weight: 400;
						color: #FE5252;
					}

					.box-remark-r {
						margin-left: 30rpx;
						width: 30rpx;
						height: 30rpx;
					}

					.remark-test-l {
						width: 80%;
						font-size: 28rpx;
						font-weight: 400;
						color: #FE5252;

						view:nth-child(1) {
							min-width: 85rpx;
						}

						view:nth-child(2) {
							width: calc(100% - 80rpx);
							word-wrap: break-word;
							word-break: normal;
						}
					}
				}


			}
		}

		.com-body {
			width: 100%;
			overflow: hidden;
			display: flex;
			flex-direction: column;

			.com-body-count {
				display: flex;
				justify-content: space-between;

				.count-name {
					font-size: 28rpx;
					font-weight: 400;
					line-height: 40rpx;
					color: $font-color-3;

					.count-name-txt {
						color: $font-color-9;
					}
				}

				.count-money {
					font-size: 28rpx;
					font-weight: 400;
					line-height: 40rpx;
					color: #FE5252;
				}
			}

			.li-texture {
				display: flex;
				border-top: 1rpx solid #f5f5f5;
				border-bottom: 1rpx solid #f5f5f5;
				line-height: 80rpx;

				.li-texture-txt {
					margin-right: 30rpx;
				}
			}

			.li-texture2 {
				display: flex;
				border-top: 1rpx solid #f5f5f5;
				border-bottom: 1rpx solid #f5f5f5;
				line-height: 80rpx;
				padding: 20rpx 0;
			}

			.li-texture3 {
				display: flex;
				border-bottom: 1rpx solid #f5f5f5;
			}

			.com-body-li {
				display: flex;
				flex-direction: column;
				margin-bottom: 30rpx;
				font-size: 28rpx;
				font-weight: 400;
				color: $font-color-3;

				.li-box-li {
					display: flex;
					justify-content: center;
					align-items: center;
					margin-bottom: 40rpx;
					width: 100%;

					.li-box-o {
						margin-left: 30rpx;
						height: 52rpx;
						line-height: 52rpx;
						text-align: center;
						border: 1rpx solid #EEEEEE;
						border-radius: 6rpx;
						flex: 25;
					}

					.li-box-t {
						flex: 50;
						display: flex;
						align-items: center;
						justify-content: center;
						color: $font-color-9;

						.li-box-w {
							margin: 0 10rpx;
						}

						.input-row-w {
							margin: 0 10rpx;
							padding: 0 10rpx;
							width: 120rpx;
							height: 52rpx;
							border: 1rpx solid #EEEEEE;
							border-radius: 6rpx;
							font-size: 28rpx;
							text-align: center;
						}

						.input-row-w2 {
							padding: 0 10rpx;
							height: 52rpx;
							font-size: 28rpx;
							text-align: center;
						}
					}

					.li-box-th {
						flex: 25;
						display: flex;
						align-items: center;
						justify-content: flex-end;

						.li-box-th-num {
							width: 60rpx;
							text-align: center;
							color: $font-color-b3;
						}

						.icon-jj {
							width: 42rpx;
							height: 42rpx;
						}
					}
				}

				.uni-swipe-action__btn-group {
					display: flex;
					flex-direction: row;
					height: 52rpx;
					width: 206rpx;
					padding-left: 30rpx;

					.uni-swipe-action--btn {
						flex: 1;
						text-align: center;
						line-height: 52rpx;
					}
				}

				.li-box-li2 {
					display: flex;
					justify-content: center;
					align-items: center;
					margin-bottom: 40rpx;
					width: 100%;

					.li-box-o {
						margin-right: 30rpx;
						height: 52rpx;
						line-height: 52rpx;
						text-align: center;
						border: 1rpx solid #EEEEEE;
						border-radius: 6rpx;
						flex: 25;
					}

					.li-box-t {
						flex: 50;
						display: flex;
						align-items: center;
						justify-content: center;
						color: $font-color-9;

						.li-box-w {
							margin: 0 10rpx;
						}

						.input-row-w {
							margin: 0 10rpx;
							padding: 0 10rpx;
							width: 120rpx;
							height: 52rpx;
							border: 1rpx solid #EEEEEE;
							border-radius: 6rpx;
							font-size: 28rpx;
							text-align: center;
						}
					}

					.li-box-th {
						flex: 25;
						display: flex;
						align-items: center;
						justify-content: flex-end;

						.li-box-th-num {
							width: 60rpx;
							text-align: center;
							color: $font-color-b3;
						}

						.icon-jj {
							width: 42rpx;
							height: 42rpx;
						}
					}
				}


				.li-box {
					display: flex;
					margin-bottom: 40rpx;

					.li-box-o {
						padding: 0 25rpx;
						height: 52rpx;
						line-height: 52rpx;
						text-align: center;
						border: 1rpx solid #EEEEEE;
						border-radius: 6rpx;
					}
				}

				.li-box-o-buttom {
					margin-left: 30rpx;
					margin-bottom: 40rpx;
					width: 84rpx;
					padding: 0 25rpx;
					height: 52rpx;
					border: 1rpx solid #EEEEEE;
					border-radius: 6rpx;
					display: flex;
					justify-content: center;
					align-items: center;

					.li-box-o-icon {
						width: 30rpx;
						height: 30rpx;
					}
				}

				.li-box-o-buttom2 {
					margin-bottom: 40rpx;
					width: 84rpx;
					padding: 0 25rpx;
					height: 52rpx;
					border: 1rpx solid #EEEEEE;
					border-radius: 6rpx;
					display: flex;
					justify-content: center;
					align-items: center;

					.li-box-o-icon {
						width: 30rpx;
						height: 30rpx;
					}
				}

				.li-title {
					display: flex;
					margin-bottom: 40rpx;

					.li-title-t {
						padding: 0 10rpx;
						background: #CBE6FF;
						border-radius: 6rpx;
						font-size: 32rpx;
						line-height: 52rpx;
						color: $font-color-3;

					}
				}

				.li-title2 {
					display: flex;
					margin-bottom: 40rpx;

					.li-title-t {
						padding: 0 10rpx;
						background: #CBE6FF;
						border-radius: 6rpx;
						font-size: 32rpx;
						line-height: 52rpx;
						color: $font-color-3;

					}
				}
			}
		}
	}

	.flex {
		display: flex;
	}

	.flex-wrap {
		flex-wrap: wrap;

	}

	.items-center {
		align-items: center;
	}

	.justfy-center {
		justify-items: center;
	}

	.justfy-between {
		justify-content: space-between;
	}

	.justfy-end {
		justify-content: flex-end;
	}

	.justfy-start {
		justify-content: flex-start;
	}

	.contend-center {
		justify-content: center;

	}

	.contend-start {
		justify-content: flex-start;
	}

	.contend-around {
		justify-content: space-around;
	}

	.contend-around {
		justify-content: space-around;
	}

	.col-1 {
		width: calc(100% / 12 * 1);
	}

	.col-2 {
		width: calc(100% / 12 * 2);
	}

	.col-3 {
		width: calc(100% / 12 * 3);
	}

	.col-4 {
		width: calc(100% / 12 * 4);
	}

	.col-5 {
		width: calc(100% / 12 * 5);
	}

	.col-6 {
		width: calc(100% / 12 * 6);
	}

	.col-7 {
		width: calc(100% / 12 * 7);
	}

	.col-8 {
		width: calc(100% / 12 * 8);
	}

	.col-9 {
		width: calc(100% / 12 * 9);
	}

	.col-10 {
		width: calc(100% / 12 * 10);
	}

	.col-11 {
		width: calc(100% / 12 * 11);
	}

	.col-12 {
		width: calc(100%);
	}
</style>
